<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<s:hidden id="confirmDelayedMeeting" value="%{getText('message.confirmDelayedMeeting')}" ></s:hidden>
<s:hidden id="informDelayedMeeting" value="%{getText('message.informDelayedMeeting')}" ></s:hidden>

<s:if test="%{maxTimeNextMeetingError}">	
	<script type="text/javascript">
		window.onload = function(){
			if (confirm(document.getElementById("confirmDelayedMeeting").value)) {
				document.forms[0].action = document.getElementById("actionMethod").value + "?validated=true";
		  		document.forms[0].submit();
			}
		}
	</script>
</s:if>

<s:if test="%{maxActualTimeError}">	
	<script type="text/javascript">
		window.onload = function(){
			alert(document.getElementById("informDelayedMeeting").value); 
			document.forms[0].action = document.getElementById("actionMethod").value + "?validated=true";
	  		document.forms[0].submit();
		}
	</script>
</s:if>